package com.cc.pms.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
/**
 * <p>
 * 存储队伍内部的聊天记录
 * </p>
 *
 * @author corleone
 * @since 2025-04-19
 */
@Getter
@Setter
@ToString
@TableName("team_chat")
public class TeamChat implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 聊天记录id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 队伍id
     */
    @TableField("team_id")
    private Long teamId;

    /**
     * 发送者id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 聊天内容
     */
    @TableField("content")
    private String content;

    /**
     * 发送时间
     */
    @TableField("send_time")
    private String sendTime;
}
